package com.qf.utils;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Thanks for Everything
 */
public class JpaUtils {

    private static EntityManagerFactory managerFactory = Persistence.createEntityManagerFactory("myjpa");

    public static EntityManager getSession(){
        return managerFactory.createEntityManager();
    }


}
